package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YonbipKmysMapper;
import com.ruoyi.system.domain.YonbipKmys;
import com.ruoyi.system.service.IYonbipKmysService;
import com.ruoyi.common.core.text.Convert;

/**
 * 科目映射Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-15
 */
@Service
public class YonbipKmysServiceImpl implements IYonbipKmysService 
{
    @Autowired
    private YonbipKmysMapper yonbipKmysMapper;

    /**
     * 查询科目映射
     * 
     * @param kmbm 科目映射主键
     * @return 科目映射
     */
    @Override
    public YonbipKmys selectYonbipKmysByKmbm(String kmbm)
    {
        return yonbipKmysMapper.selectYonbipKmysByKmbm(kmbm);
    }

    /**
     * 查询科目映射列表
     * 
     * @param yonbipKmys 科目映射
     * @return 科目映射
     */
    @Override
    public List<YonbipKmys> selectYonbipKmysList(YonbipKmys yonbipKmys)
    {
        return yonbipKmysMapper.selectYonbipKmysList(yonbipKmys);
    }

    /**
     * 新增科目映射
     * 
     * @param yonbipKmys 科目映射
     * @return 结果
     */
    @Override
    public int insertYonbipKmys(YonbipKmys yonbipKmys)
    {
        return yonbipKmysMapper.insertYonbipKmys(yonbipKmys);
    }

    /**
     * 修改科目映射
     * 
     * @param yonbipKmys 科目映射
     * @return 结果
     */
    @Override
    public int updateYonbipKmys(YonbipKmys yonbipKmys)
    {
        return yonbipKmysMapper.updateYonbipKmys(yonbipKmys);
    }

    /**
     * 批量删除科目映射
     * 
     * @param kmbms 需要删除的科目映射主键
     * @return 结果
     */
    @Override
    public int deleteYonbipKmysByKmbms(String kmbms)
    {
        return yonbipKmysMapper.deleteYonbipKmysByKmbms(Convert.toStrArray(kmbms));
    }

    /**
     * 删除科目映射信息
     * 
     * @param kmbm 科目映射主键
     * @return 结果
     */
    @Override
    public int deleteYonbipKmysByKmbm(String kmbm)
    {
        return yonbipKmysMapper.deleteYonbipKmysByKmbm(kmbm);
    }
}
